<?php



class SessionRegistrationMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.SessionRegistrationMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('conf_session_registration');
		$tMap->setPhpName('SessionRegistration');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('SESSION_REGISTRATION_ID', 'SessionRegistrationId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addForeignPrimaryKey('SESSION_ID', 'SessionId', 'int' , CreoleTypes::INTEGER, 'conf_session', 'ID', true, null);

		$tMap->addForeignPrimaryKey('REGISTRATION_ID', 'RegistrationId', 'int' , CreoleTypes::INTEGER, 'conf_registration', 'ID', true, null);

	} 
} 